package com.stone.schedule.facade.request;

import com.stone.schedule.facade.base.BaseRequestDTO;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.groups.Default;

/**
 * Created by stone on 2017/8/31.
 */
@Data
public class TestQuery extends BaseRequestDTO {

	@NotBlank(message = "Name 不能为空",groups = Default.class)
	private String name ;

	@Override
	public void valid() {
		super.validate(this,Default.class);
	}
}
